//
//  SearchViewController.h
//  PhoneBook
//
//  Created by valkyrie on 8/18/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PhoneBookSearchFactory.h"

@interface SearchViewController : UIViewController<UISearchBarDelegate,UITableViewDelegate,UITableViewDataSource> {

	//UITextField *keywordText;
	//UIButton *searchBtn;
	
	IBOutlet UISearchBar *phoneSearchBar;
	
	// result display table view
	UITableView *phoneListTableView;
	NSMutableArray *phoneArray;
	
	// Search API TOOL
	PhoneNumSearcher *searcher;
	
	// Search API Response Data
	NSMutableData *recieveData;
	
	// Conn YAHOO
	NSURLConnection *conn;
	
	// ON Searching Alert
	UIAlertView *doSearchAlert;
	
	UIView *disableViewOverlay;
	
}

//@property (nonatomic, retain) IBOutlet UITextField *keywordText;
//@property (nonatomic, retain) IBOutlet UIButton *searchBtn;
@property (nonatomic, retain) UISearchBar *phoneSearchBar;
@property (nonatomic, retain) UITableView *phoneListTableView;
@property (nonatomic, retain) NSMutableArray *phoneArray;
@property (nonatomic, assign) PhoneNumSearcher *searcher;
@property (nonatomic, retain) NSURLConnection *conn;
@property (nonatomic, retain) UIAlertView *doSearchAlert;
@property (nonatomic, retain) UIView *disableViewOverlay;

// Done Editing Keyword
- (IBAction) keywordDoneEditing: (id) sender;

// Start to search Phone Number
- (IBAction) doSearchPhoneNumber: (id) sender;

@end
